libxc: provide interface for generic resource access
authorDongxiao Xu <dongxiao.xu@intel.com>
Mon, 6 Oct 2014 10:35:55 +0000 (12:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 6 Oct 2014 10:35:55 +0000 (12:35 +0200)
commitfc265934d83be3d6da2647dce470424170fb96e9
tree34e2b4e980258135623ed768cdfdbd3b4ff29116
parent2a5e086e0bd6729b4a25536b9f978dedf3be52de
libxc: provide interface for generic resource access

Xen added a new platform_op hypercall for generic MSR access, and this
is the the tool side change to wrapper the hypercall into xc APIs.

For non-preemptible batch resource operations, group them in entries of
xc_resource_op structure. For preemptible ones, use multiple
xc_resource_op structure instead.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
tools/libxc/Makefile
tools/libxc/include/xenctrl.h
tools/libxc/xc_private.h
tools/libxc/xc_resource.c [new file with mode: 0644]